//
//  SelfHomeTabViewCell.m
//  DefendHealth
//
//  Created by 吾诺翰卓003 on 17/2/21.
//  Copyright © 2017年 iMacOne. All rights reserved.
//

#import "SelfHomeTabViewCell.h"

@interface SelfHomeTabViewCell ()
{
    UIImageView *tou;
    UILabel *title;
    
}
@end
@implementation SelfHomeTabViewCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.contentView.backgroundColor = [UIColor whiteColor];
        
        tou = [UIImageView new];
        tou.frame = CGRectMake(10, 13, 21, 21);
        tou.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:tou];
        
        title = [UILabel new];
        title.frame = CGRectMake(kMaxX(tou.frame)+14, 0, 118, 47);
        title.text = @"您暂未绑定会员卡，";
        title.font = FONT(14);
        title.textColor = UIColorFromRGB(0x333333);
        title.textAlignment = 0;
        [self.contentView addSubview:title];
        
        UIImageView *right = [UIImageView new];
        right.frame = CGRectMake(WindowWidth-10-7, 18, 7, 11);
        right.image = [UIImage imageNamed:@"point"];
        [self.contentView addSubview:right];
        
        _hui = [UIView new];
        _hui.frame = CGRectMake(10, 45.5,WindowWidth-20 , 1.5);
        _hui.backgroundColor = k_TableBackColor;
        [self.contentView addSubview:_hui];
    }
    return self;
}
-(void)setModel:(SelfHomeModel *)model{
    if (model != _model) {
        _model = model;
        title.text = model.title;
    }
}
@end
